package day1118;

import java.util.Scanner;

public class Demo5 {
    public static void main(String[] args) {
        Scanner  sc=new Scanner(System.in);//2.创建对象

        System.out.println("请输入您的身高(m)：");
        double height=sc.nextDouble();//3.

        System.out.println("请输入您的体重(kg):");
        double weight=sc.nextInt();
        double bmi=weight/(height*height);
        if(bmi<18.5){
            System.out.println("偏瘦");
        }else if(18.5<=bmi &&  bmi<24){
            System.out.println("正常");
        }else if(24<=bmi &&  bmi<28){
            System.out.println("偏胖");
        }else{
            System.out.println("重度肥胖");
        }



    }//bmi<18.5 偏瘦 ,   18.5<=bmi<24 正常   24<=bmi<28 偏胖   28以上 重度肥胖
}
